#include "waitdlg.h"

waitDlg::waitDlg()
{
    setWindowFlags(Qt::FramelessWindowHint);

    this->setLayout(&lay);
    this->resize(100,100);

    QPalette palette(this->palette());
    palette.setColor(QPalette::Window, QColor(0xcc,0xcc,0xcc));
    this->setPalette(palette);

    ind.setColor(QColor(0x66,0xCC,0xFF));
    label.setText("请稍后");

    lay.addWidget(&ind,1,Qt::AlignCenter);
    lay.addWidget(&label,1,Qt::AlignCenter);

    ind.setAnimationDelay(50);
    ind.startAnimation();
}
